package com.cloudkinto.service.orderoutput.openapivo;

import com.cloudkinto.service.orderoutput.vo.OrderOutputProductAddReq;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhangyy
 * @date 2020/9/8 16:15
 * @description:
 */
@Data
public class OpenApiOrderOutputPackageAddReq {

    @NotNull(message = "请填写长度")
    private double length;

    @NotNull(message = "请填写宽度")
    private double width;

    @NotNull(message = "请填写高度")
    private double height;

    @NotNull(message = "请填写重量")
    private double weight;


    @NotNull(message = "请填写包裹数量")
    private int packageCount;

    @NotEmpty(message = "请选择商品")
    private List<OpenApiOrderOutputProductAddReq> productList;
}
